require('../less/poster.less')

document.ready(function(){
    const seconds=document.querySelector("#seconds");
    const skip=document.querySelector("#skip")
    let num=5
    let timer=setInterval(function(){
        num--
        if(num==0){
            location.href='login.html';
            clearInterval (timer);

        }else{
            seconds.textContent=num
            
        }
       
    },1000)

    skip.onclick=function(){
        location.href='login.html';
    }
})